﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="He.Web.manage.administrator.list" %>

<%@ Register Src="../_uc/head_list.ascx" TagPrefix="uc" TagName="head_list" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理员管理</title>
    <uc:head runat="server" ID="uchead" />
    <uc:head_list runat="server" ID="uchead_list" />
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="add"><a href="edit.aspx?action=<%=He.Web.UI.Enums.ActionEnum.Add %>">增加管理员</a></span>
        <b>您当前的位置：首页 &gt; 系统管理 &gt; 管理员列表</b>
    </div>
    <div class="spClear">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <asp:Repeater ID="rptList" runat="server">
            <HeaderTemplate>
                <tr>
                    <th width="7%">
                        选择
                    </th>
                    <th>
                        管理帐号
                    </th>
                    <th width="16%">
                        真实姓名
                    </th>
                    <th width="25%">
                        电子邮件
                    </th>
                    <th width="11%">
                        管理员类型
                    </th>
                    <th width="11%">
                        状态
                    </th>
                    <th width="10%">
                        操作
                    </th>
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:CheckBox ID="Check" CssClass="checkall" runat="server"></asp:CheckBox><asp:HiddenField
                            ID="HiddenId" runat="server" Value='<%#Eval("id") %>' />
                    </td>
                    <td>
                        <%#Eval("user_name") %>
                    </td>
                    <td>
                        <%#Eval("real_name") %>
                    </td>
                    <td>
                        <%#Eval("email") %>
                    </td>
                    <td>
                        <%#GetAdminType(Eval("user_type")) %>
                    </td>
                    <td>
                        <%#Convert.ToInt32(Eval("is_lock"))==0 ? "<img title=\"正常\" src=\"../images/correct.gif\" />":"<image title=\"禁用\" src=\"../images/disable.gif\" />" %>
                    </td>
                    <td>
                        <a href='edit.aspx?action=<%=He.Web.UI.Enums.ActionEnum.Edit %>&id=<%#Eval("Id") %>'>
                            编辑</a> <a href="edit_pwd.aspx?id=<%#Eval("id") %>">修改密码</a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <div class="spClear">
    </div>
    <div style="line-height: 30px; height: 30px;">
        <%=He.Web.UI.HtmlHelper.PagerText(pcount, psize, page, "?page=__id__")%>
        <div class="left">
            <span class="btn_all" onclick="CheckAll(this)">全 选</span> <span class="btn_bg">
                <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtnDel_Click" OnClientClick="return confirm( '确定要删除这些记录吗？ ');">批量删除</asp:LinkButton></span></div>
    </div>
    </form>
</body>
</html>
